<?php

namespace app\controllers;

class IndexController extends BaseController
{
	public function index()
	{
		$data['title'] = 'xframe index';
		$data['app_id'] = \Config::get("app_id", 0);
		
		return \View::display("index", $data);
	}
	
	public function config()
	{
		$config = [
			"app_id"	=>	\Config::get("app_id"),
			"web_url"	=>	\Config::get("web_url"),
			"api_url"	=>	\Config::get("api_url"),
			"file_url"	=>	\Config::get("file_url"),
		];
		return $config;
	}
}
